#ifndef SMTPINVOKER_H
#define SMTPINVOKER_H

class QTcpSocket;
class SMTPInvoker
{
public:
    SMTPInvoker();
    ~SMTPInvoker();
    int Connect(QString server,unsigned short port = 25);
    int Login(QString username, QString password);
    int Send(QString from,QString to, QString subject ,QString text);
    int Quit();
private:
    QTcpSocket *socket;
    int execute(QString cmd,QString *output = NULL);
};

#endif // SMTPINVOKER_H
